#include <libavutil/log.h>

int main(int argc, char *argv[])
{
    av_log_set_level(AV_LOG_DEBUG);
    // av_log_set_level(AV_LOG_ERROR);
    // av_log_set_level(AV_LOG_WARNING);
    av_log(NULL, AV_LOG_DEBUG, "current level = debug\n");
    av_log(NULL, AV_LOG_ERROR, "current level = error\n");
    av_log(NULL, AV_LOG_WARNING, "current level =  waring\n");
    return 0;
}